<?php 
 
class IntegerField extends fpp_tdp_Model{

  function __construct($DataObjects){
    parent::__construct($DataObjects);
  }

  public function __toString(){
    $limit = $this->args->limit_number;
    $maxlenght = strlen($limit);
    return form::input($this->field_name,$this->field_value,"class='OnlyNumbers' limit='$limit' max_lenght='$maxlenght' ");
  }

}

?>